package com.xunsiya.service.system;

import com.xunsiya.common.config.util.ConstantInfo;
import com.xunsiya.system.dao.AuthMapper;
import com.xunsiya.system.dao.CompanyMapper;
import com.xunsiya.system.dao.UserMapper;
import com.xunsiya.system.vo.Company;
import com.xunsiya.system.vo.User;
import com.xunsiya.tools.common.msg.Msg;
import com.xunsiya.tools.common.pagination.ForePage;
import com.xunsiya.tools.common.pagination.PagedUtil;
import com.xunsiya.tools.common.string.StringUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 注册实现层
 *
 * @author fw
 * @version 1.0
 *          <p/>
 *          <br/>
 *          <br/>修订人    修订时间      描述信息
 *          <br/>-----------------------------------------------------
 *          <br/>fw    2019/1/4    初始创建
 */
public interface RegisterService {
    /**
     * 发送注册激活邮件
     * @param user
     */
    public void sendAccountActivateEmail(User user);

    /**
     * 验证校验码
     * @param user 用户
     * @param checkCode 验证码
     * @return
     */
    public boolean verifyCheckcode(User user, String checkCode);

    /**
     * 发送忘记密码邮件
     *
     * @param user 用户
     * @return
     */
    public String sendPasswordEmail(User user);
}
